package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: ysotirov
 * Date: 29/01/13
 * Time: 16:15
 * To change this template use File | Settings | File Templates.
 */
public class DisplayBooksList extends Option {

    public DisplayBooksList(IOInterface ioHndl,Biblioteca bibl) {
        super(ioHndl,bibl);
    }


    @Override
    public void executeOption() {
        for (int i = 0; i<this.biblioteca.booksList.size(); i++)
        {

            ioHandler.queueMsg(Integer.toString(i+1)+" "+this.biblioteca.booksList.get(i).Title);
        }
        ioHandler.Print();
    }
}
